package ${projectConfig.beanPackage}.${config.model}.service;

import ${projectConfig.beanPackage}.${config.model}.bean.po.gen.${config.objectName};
import ${projectConfig.commPackage}.bean.PageBean;

import java.util.List;
import java.util.Map;

/**
 * ${config.objectDesc}
 *
 */
public interface I${config.objectName}Service {

<#list pks as prop>
    ${config.objectName} queryObject(${prop.javaType}  ${prop.alias});

    ${config.objectName} queryObject(Map
<String, Object> map);
	
	List<${config.objectName}> queryList(Map
<String, Object> map);

    PageBean getPageBeanByMap(Map map,int pageNo,int pageSize);

    int queryTotal(Map
<String, Object> map);
	
	void save(${config.objectName} ${config.objectName?uncap_first});
	
	void update(${config.objectName} ${config.objectName?uncap_first});

    void delete(Map
<String, Object>  map);
	void delete(${prop.javaType}  ${prop.alias});
	
	void deleteBatch(${prop.javaType}[]  ${prop.alias}s);
</#list>
}
